<?php

define('WP_USE_THEMES', true);

global $more_article;

$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';

require('private.php');
require(CONFIGPATH . 'wp-config.php');
require_once( ABSPATH . WPINC . '/registration-functions.php');


get_currentuserinfo();

$SITE_TITLE = get_settings('site_title');


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/blogs/xys/favicon.ico" type="image/x-icon" />
<title><?php echo $SITE_TITLE ?>(Beta)</title>

<link rel="stylesheet" href="<?php echo WEBROOT ?>/wp-content/portal/style.css" type="text/css" media="screen" />

<META NAME='KEYWORDS' CONTENT='德赛公园'/>

<META NAME="description" content="德赛公园">
<style type="text/css" media="screen">
</style>
</head>
<body>



<?php 

if ($user_identity) { ?>
<div id="status">
	<div class="description"><?php  echo "logged in as <em>$user_identity</em>"?> [<a href="login?action=logout">Log Out</a>]</div>
Lyceum
</div>
<?php } else { ?>
<div id="status" class="closed">&nbsp;</div>
<?php } ?>

<table border=0 align=center width=900 class="mybody">
<tr>
<td>

<div id="page">

<div id="header" style="background-image:url('/blogs/image/de-sci-logo.png');
background-repeat: no-repeat;" align="right">

	
<?php if ( isset($_SESSION['slug_error']) ) : ?>
	<div style="background: #FFEFF7; border: 1px solid #c69; margin: -1em 5% 10px; padding: 0 1em 0 1em; text-align: center; font-size: 15px;" align=center>
	<?php
	echo $_SESSION['slug_error'];
	?>
	</div>
	<?php unset($_SESSION['slug_error']); endif; ?> 

	<div id="sys-login" class="widecolumn">
<?php

	echo '<h3>&nbsp;';
	
	if ($userdata->user_admin){
 	 echo '<a href="system-admin/settings.php">System Settings</a>	&nbsp;';
	}
	
	$myblogs = get_userblogs();
	$sys_admin_user=0;
	if ($myblogs) {
		echo "我的博客: ";
		foreach ($myblogs as $b){
			echo "<a href=\"".$b->home."/admin\">$b->blogname</a>&nbsp;\n";
			if($b->id ==2) $sys_admin_user=1;
		}	
		if($sys_admin_user){
			echo "<a href=\"http://www.de-sci.org/xys/p_cat_show.php?cat_id=27353&admin_mode=on&hot_admin=1\">【热点专辑管理】</a>&nbsp;\n";
		}
	}else {
		//echo "You do not have permissions on any blogs. Click <em>Register</em> above to make a username and a blog.";
	}
	echo "</h3><br>	";
?>


	<h3>
 	<a href="http://www.de-sci.org/">TOP</a> &nbsp;&nbsp;
	<?php
	if (!$is_portal) {
		echo ' <a href="http://www.de-sci.org/blogs/">博客首页</a>&nbsp;';
	}
	?>
	<?php
	if (!$user_identity) {
		echo ' <a href="./blog_register/">';
		_e('Register');
		echo '</a>&nbsp;<a href="login">'.__('Login').'</a>';
	} else {
		echo '<a href="login?action=logout">'.__('Logout').'</a>';
	}
	echo '&nbsp;<font color=#A1A>||</font>&nbsp;<a href="http://www.de-sci.org/blogs/zhongyantang/help/">帮助</a>';
	echo '-<a href="/blogs/sys_admin/">反馈</a> ';
	echo '&nbsp;<font color=#A1A>||</font>&nbsp;<a href="http://www.baihuayuan.org/">百花园</a>';
	echo ' </h3>';

	echo "</div>";

?>

</div>


